package com.lagou.service;
import java.util.ArrayList;

import com.lagou.mapper.UserMapper;
import com.lagou.pojo.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Nocturne
 * @date 2021/5/9 18:24
 * @description
 */
@Service
public class UserService {

	Logger logger = LoggerFactory.getLogger(UserService.class);

	@Autowired
	private UserMapper userMapper;

	public List<User> findAllUser() {
		List<User> allUser = userMapper.findAllUser();

		logger.info("查询出来的用户信息:" + allUser.toString());
		return allUser;
	}
}
